<?php
$this->headTitle('Phân quyền','append');
?>
<div class="grid grid_8">
    <div class="box-header">
        Phân quyền
        <a class="add" href="<?php echo $this->url(array('controller'=>'role', 'action'=>'add'));?>">
            Thêm mới
        </a>
    </div>
    <div class="box table">
	   <table cellspacing="0">
            <thead>
                <tr>
                    <td class="tc">Mã quyền</td>
                    <td class="tc">Tên quyền</td>
                    <td class="tc">Tùy chọn</td>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($this->roles_list as $role){ ?>
                    <tr id="row<?php echo $this->escape($role->id);?>">
                        <td class="tc"><?php echo $this->escape($role->id);?></td>
                        <td><?php echo $this->escape($role->roleName);?></td>
                        <td class="tc">
                            <a href="<?php echo $this->url(array('controller'=>'role', 'action'=>'edit', 'id'=>$role->id));?>" title="Sửa quyền">
                                <img src="image/icons/small/icon_edit.png" alt="edit roles" border="0"/>
                            </a>
                			<a href="<?php echo $this->url(array('controller'=>'role', 'action'=>'delete', 'id'=>$role->id));?>" title="Xóa quyền">
                                <img src="image/icons/small/icon_delete.png" alt="delete roles" border="0"/>
                            </a>
                        </td>
                    </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>
<div class="grid grid_4">
	<div class="box-header">Hướng dẫn</div>
	<div class="box"></div>
</div>

